package com.hdax.dm.api.base.controller;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdax.dm.api.base.AreaControllerApi;
import com.hdax.dm.entity.base.Area;
import com.hdax.dm.service.AreaService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class AreaController implements AreaControllerApi {

    @Autowired
    private AreaService areaService;

    @Override
    public List<Area> findArea() {
        return areaService.list();
    }
}
